﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Text.RegularExpressions;

namespace Test_av_testdriven_utveckling
{
    public class Reguljära_uttryck
    {
        public bool IsInteger(string str)
        {
            Regex pattenInteger = new Regex(@"^\d+$");
            return pattenInteger.IsMatch(str);
        }

        //public bool IsFloat(string str)
        //{
        //    Regex pattenInteger = new Regex(@"^|-+|?|0-9|+|.|?|0-9|*(|eE||-+|?|0-9|+)?$");
        //    return pattenInteger.IsMatch(str);
        //}
    }
}
